<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
   var data = [
	{
		id:1,
		name:"iphone12",
		price:"6299"
	},
	{
		id:2,
		name:"iphoneX",
		price:"4399"
	},
	{
		id:3,
		name:"iphone7",
		price:"2000"
	},
  {
		id:4,
		name:"小米1",
		price:"1499"
	},
  {
		id:5,
		name:"华为max",
		price:"6000"
	},
  {
		id:6,
		name:"红魔",
		price:"3999"
	},
  {
		id:7,
		name:"努比亚",
		price:"1200"
	},
  {
		id:8,
		name:"三星",
		price:"4999"
	},
  {
		id:9,
		name:"摩托罗拉",
		price:"999"
	},
  {
		id:10,
		name:"诺基亚",
		price:"7999"
	},

];
  // 输入两个价格，在两个价格之间进行查找，并输出对应的商品
  
  </script>
</body>
</html>